diff --git a/BUILD b/BUILD
index ad85b202..2311b2e4 100644
--- a/BUILD
+++ b/BUILD
@@ -44,7 +44,7 @@ config_setting(

 config_setting(
     name = "windows",
-    constraint_values = ["@bazel_tools//platforms:windows"],
+    constraint_values = ["@platforms//os:windows"],
 )

 config_setting(
